package com.anxin.act.task.entity;

//import io.swagger.annotations.ApiModel;
//import io.swagger.annotations.ApiModelProperty;
import org.activiti.engine.task.Comment;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.anxin.framework.aspectj.lang.annotation.Excel;
import com.anxin.framework.web.entity.BaseEntity;
import java.util.Date;

/**
 * 加签任务审批记录对象 wf_act_hi_comment
 *
 * @author jbs
 * @date 2021-10-22
 */
//@ApiModel(description = "加签任务审批记录")
public class WfActHiComment extends BaseEntity<WfActHiComment>{
    private static final long serialVersionUID = 1L;

    /** 填写人ID */
    //@ApiModelProperty(value = "填写人ID",position=20)
    private String userId;

    /** 填写人登录名 */
    //@ApiModelProperty(value = "填写人登录名",position=30)
    private String userName;

    /** 任务ID */
    //@ApiModelProperty(value = "任务ID",position=40)
    private String taskId;

    /** 流程实例ID */
    //@ApiModelProperty(value = "流程实例ID",position=50)
    private String actId;

    /** 填写时间 */
    //@ApiModelProperty(value = "填写时间",position=60)
    private Date time;

    /** 审批意见 */
    //@ApiModelProperty(value = "审批意见",position=70)
    private String message;


    public WfActHiComment(){

    }


    /**
     * 初始化
     * @param taskComment
     */
    public WfActHiComment(Comment taskComment){
        this.message = taskComment.getFullMessage();
    }

    /**
     * 初始化
     * @param taskId
     */
    public WfActHiComment(String taskId){
        this.taskId = taskId;
    }

    /**
     * 初始化
     * @param taskId 任务ID
     * @param actId 流程实例ID
     * @param message 审批意见
     */
    public WfActHiComment(String taskId,String actId,String message){
        this.taskId = taskId;
        this.actId = actId;
        this.message = message;
    }


    public void setUserId(String userId){
        this.userId = userId;
    }

    public String getUserId(){
        return userId;
    }
    public void setUserName(String userName){
        this.userName = userName;
    }

    public String getUserName(){
        return userName;
    }
    public void setTaskId(String taskId){
        this.taskId = taskId;
    }

    public String getTaskId(){
        return taskId;
    }
    public void setActId(String actId){
        this.actId = actId;
    }

    public String getActId(){
        return actId;
    }
    public void setTime(Date time){
        this.time = time;
    }

    public Date getTime(){
        return time;
    }
    public void setMessage(String message){
        this.message = message;
    }

    public String getMessage(){
        return message;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("taskId", getTaskId())
            .append("actId", getActId())
            .append("time", getTime())
            .append("message", getMessage())
            .toString();
    }
}
